package jianxin.springbootdocker.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * B站相关接口
 */
@RestController
@RequestMapping("/api/bilibili")
public class BilibiliController {

    /**
     * 返回B站问候信息
     * @return 问候信息
     */
    @GetMapping("/greeting")
    public Map<String, Object> getBilibiliGreeting() {
        return Map.of(
            "message", "你好E站",
            "code", 200,
            "success", true,
            "timestamp", System.currentTimeMillis()
        );
    }
}
